<?php /* Smarty version 2.6.18, created on 2017-06-05 21:56:39
         compiled from longr.html */ ?>
       <?php if (( $this->_tpl_vars['fenlei'] == 151 )): ?>  
        <div class="row textcenter darkred borderbtmred" style="border:none;">
        <div class="padding10 clearfix" >
        <h3>近期开奖结果</h3>
        </div>
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['kj']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
          <div class="padding10 clearfix" style="border-bottom:1px solid #C8CCFD">
                <div class="col-xs-2"><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['qs']; ?>
期</div>
                <div class="col-xs-4  T151 ball">
                <?php if ($this->_tpl_vars['kj'][$this->_sections['i']['index']]['m1'] != ''): ?><span><b class='b<?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m1']; ?>
'><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m1']; ?>
</b></span><?php endif; ?>
                <?php if ($this->_tpl_vars['kj'][$this->_sections['i']['index']]['m2'] != ''): ?><span><b class='b<?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m2']; ?>
'><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m2']; ?>
</b></span><?php endif; ?>
                <?php if ($this->_tpl_vars['kj'][$this->_sections['i']['index']]['m3'] != ''): ?><span><b class='b<?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m3']; ?>
'><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m3']; ?>
</b></span><?php endif; ?>
                </div>
                <div class="col-xs-2"><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['m1']+$this->_tpl_vars['kj'][$this->_sections['i']['index']]['m2']+$this->_tpl_vars['kj'][$this->_sections['i']['index']]['m3']; ?>
</div>
                <div class="col-xs-2"><?php echo $this->_tpl_vars['kj'][$this->_sections['i']['index']]['dx']; ?>
</div>
            </div>
          
         <?php endfor; endif; ?>   
        </div>
       <?php else: ?>
       
        <div class="row textcenter darkred borderbtmred" style="border:none;">
        <div class="padding10 clearfix" >
        <h3>两面长龙排行</h3>
        </div>
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['z']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
        <?php if (( $this->_tpl_vars['z'][$this->_sections['i']['index']]['bname'] != '2字和数' & $this->_tpl_vars['z'][$this->_sections['i']['index']]['bname'] != '3字和数' )): ?>
          <div class="padding10 clearfix" style="border-bottom:1px solid #C8CCFD">
                <div class="col-xs-4"><?php echo $this->_tpl_vars['z'][$this->_sections['i']['index']]['name']; ?>
</div>
                <div class="col-xs-4"><?php echo $this->_tpl_vars['z'][$this->_sections['i']['index']]['pname']; ?>
</div>
                <div class="col-xs-4"><label><?php echo $this->_tpl_vars['z'][$this->_sections['i']['index']]['qishu']; ?>
</label>&nbsp;期</div>
            </div>
            <?php endif; ?>
         <?php endfor; endif; ?>   
        </div>
        <?php endif; ?>